/**
 *  Create by on 2018/6/15
 */


// 弹窗层
function x_admin_show(title,url,w,h,data){
    console.log(url);
    if (title == null || title == '') {
        title=false;
    };
    if (url == null || url == '') {
        url="404.html";
    };
    if (w == null || w == '') {
        w=($(window).width()*0.9);
    };
    if (h == null || h == '') {
        h=($(window).height() - 50);
    };
    layer.open({
        type: 2,
        area: [w+'px', h +'px'],
        fix: false, //不固定
        maxmin: true,
        shadeClose: true,
        shade:0.4,
        title: title,
        content: url,
        success:function (layero,index) {
            //编辑页面
                var iframe = window['layui-layer-iframe' + index];
                iframe.child(data);

        },
    	end:function(){
    		location.reload();
    	}
    });
}
